package com.jxbai.design.pattern.dcxy.factory.abs;


/**
 * @author jxbai
 * @date 2021/12/13 0013
 */
public class MainTest {

    public static void main(String[] args) {
        WuLinFactory factory = new WuLinVanFactory();
        factory.newCar().run();

        factory = new WuLinMiniFactory();
        factory.newCar().run();

        factory = new WuLinN95MaskFactory();
        factory.newMask().protectMe();

        factory = new WuLinCommonMaskFactory();
        factory.newMask().protectMe();

    }
}
